<php>
$user_id 	= intval($_REQUEST['user_id']);
$userInfo = model('User')->getById($user_id);
$desirousno = 0;
if(!empty($userInfo)){
	$loginbinds = model('User')->syncStatus($user_id);
	$desirousno = service('Collect')->count4User(Dict::DESIROUS,$user_id);
}
/**
if(empty($userinfo)){
	//$this->error('用户不存在！');
}
if($userinfo['is_open']==N){
	//$this->error('该用户个人信息未公开！');
}

dump($userinfo);
**/
</php>
	<div style="padding:15px; width:300px;height: 100px;overflow: hidden;">
		<div class="left" style="width:115px;">
			<img id="uc_avator" src="{$userInfo['id']|getUserFace='b'}" style="width:93px;height:93px;padding:2px;border: 1px solid rgb(128, 152, 168); ">
		</div>
		<div class="left" style="width:185px;overflow: hidden;height: 100px;" id="uc_uinfo">
			<h3 style="line-height: 22px;font-size:14px;color:#000000;">
				<strong style="" id="uc_uname">{$userInfo['uname']}</strong>&nbsp;&nbsp;
				<php>if('sina'==$userInfo['sync_type']){</php>
					<img src="/Public/Images/global/sina24x24.png" align="absmiddle" title="新浪微博直接登录">
				<php>}</php>
				<php>if('douban'==$userInfo['sync_type']){</php>
					<img src="/Public/Images/global/douban24x24.png" align="absmiddle" title="豆瓣直接登录">
				<php>}</php>
			</h3>
			<php>if($userInfo['is_open']=='Y'){</php>
			<p style="padding:3px 0px;">姓名：<span id="uc_realname">{$userInfo['realname']}</span></p>
			<p style="padding:3px 0px;">性别：<span id="uc_sex"><eq name="userInfo.gender" value="M">男</eq><eq name="userInfo.gender" value="F">女</eq></span></p>
			<p style="padding:3px 0px;">生日：<span id="uc_birthday">{:paramMillisecond2Date($userInfo['btime'],'Y 年 m 月 d 日','')}</span></p>
			<p style="padding:3px 0px;">城市：<span id="uc_location">{:getAreaDesc($userInfo['province_id'],$userInfo['city_id'],$userInfo['area_id'])}</span></p>
			<php>}else{</php>
				  <p style="padding:3px 0px;font-weight:bold;color:red;">用户个人信息未公开</p>
				  <p style="padding:3px 0px;">&nbsp;</p>
				  <p style="padding:3px 0px;">&nbsp;</p>
				  <p style="padding:3px 0px;">&nbsp;</p>
			<php>}</php>
		</div>
		<div class="c"></div>
	</div>
	<div style="padding:5px 15px; height: 25px; background-color:#F7F7F7; border-top:1px dashed #9F9F9F; clear:both;">
		<div class="honortip">
			<span style="color: #000000;float:right;margin-top:6px; font-weight: bold;">
   				<eq name="userInfo.gender" value="M">他</eq><eq name="userInfo.gender" value="F">她</eq>有&nbsp;<font style="color:#FF9600;font-size:20px;font-family: 'Times New Roman';">{$desirousno}</font>&nbsp;件想要的礼物，
				<a style="color: #339900;" href="{:U('Index://Index/space',array('suid'=>$user_id))}" >去看看！</a>
			</span>
			<php>if( empty($loginbinds) ){</php>
				<php>}else{</php>
					<php>if($loginbinds['sina']!=null){</php>
						<img src="/Public/Images/global/sina24x24.png" align="absmiddle" title="已绑定新浪微博">&nbsp;&nbsp;
					<php>}</php>
					<php>if($loginbinds['douban']!=null){</php>
						<img src="/Public/Images/global/douban24x24.png" align="absmiddle" title="已绑定豆瓣">&nbsp;&nbsp;
					<php>}</php>
				<php>}</php>
		</div>
	</div>